import tkinter as tk

root = tk.Tk()
root.geometry('500x300')
tk.Label(root, text='', width=20, height=5).grid(row=0, column=0)
tk.Label(root, text='用户名：').grid(row=1, column=1)
tk.Entry(root).grid(row=1, column=2)
tk.Label(root, text='密  码：').grid(row=2, column=1)
tk.Entry(root).grid(row=2, column=2)
# grid sticky pack anchor
tk.Button(root, text='提交', width=10).grid(row=3, column=2, sticky=tk.W)

# 同一个组件里面没办法实现两套布局
# tk.Frame 布局组件
root.mainloop()
